package com.travel.entity;

import org.springframework.stereotype.Component;

@Component
public class TOrderPerson   {
  private int personId;
  private String personName;
  private String personCard;
  private String personPhonenumber;
  private TOrder order;

  @Override
  public String toString() {
    return "TOrderPerson{" +
            "personId=" + personId +
            ", personName='" + personName + '\'' +
            ", personCard='" + personCard + '\'' +
            ", personPhonenumber='" + personPhonenumber + '\'' +
            ", order=" + order +
            '}';
  }

  public int getPersonId() {
    return personId;
  }

  public void setPersonId(int personId) {
    this.personId = personId;
  }

  public String getPersonName() {
    return personName;
  }

  public void setPersonName(String personName) {
    this.personName = personName;
  }

  public String getPersonCard() {
    return personCard;
  }

  public void setPersonCard(String personCard) {
    this.personCard = personCard;
  }

  public String getPersonPhonenumber() {
    return personPhonenumber;
  }

  public void setPersonPhonenumber(String personPhonenumber) {
    this.personPhonenumber = personPhonenumber;
  }

  public TOrder getOrder() {
    return order;
  }

  public void setOrder(TOrder order) {
    this.order = order;
  }

  public TOrderPerson() {
  }

  public TOrderPerson(int personId, String personName, String personCard, String personPhonenumber, TOrder order) {
    this.personId = personId;
    this.personName = personName;
    this.personCard = personCard;
    this.personPhonenumber = personPhonenumber;
    this.order = order;
  }
}
